<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/version.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">version.h</div></div>
</div><!--header-->
<div class="contents">
<a href="version_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span><span class="preprocessor">#ifndef __VERSION_H__</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span><span class="preprocessor">#define __VERSION_H__</span></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span><span class="comment">/*******************************************************************************************************************************************</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span><span class="comment"> * Public Define Config (以下配置项需用户根据实际硬件环境情况配置) </span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span><span class="comment"> *******************************************************************************************************************************************/</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="version_8h.html#a190e24ed4405f51a3099593ea97afb23">   83</a></span><span class="preprocessor">#define SWM34SCE_PIN48_A2               0 </span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="version_8h.html#a0f1d4ea132e4d1f512bfd5c66dbce3a6">   84</a></span><span class="preprocessor">#define SWM34SRE_PIN64_A001             1 </span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="version_8h.html#a7bb5f793ec29777080250cc38a2fe9e3">   85</a></span><span class="preprocessor">#define SWM34SVE_PIN100_A001            2 </span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="version_8h.html#a0074c1b29ef0c7acbcb70a1fa2c76db4">   86</a></span><span class="preprocessor">#define SWM34SVE_PIN100_A002            3 </span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="version_8h.html#a737744852bdd23458f08a934778043a9">   89</a></span><span class="preprocessor">#define SWM34S_LCM_PCBV                 SWM34SVE_PIN100_A002</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span><span class="preprocessor">#ifndef SWM34S_LCM_PCBV</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span><span class="preprocessor">    #error &quot;Please define the SWM34S_LCM_PCBV&quot;</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span><span class="comment">/* 以下宏名均为屏幕模组丝印, 其取值为枚举值无实际意义 */</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="version_8h.html#a4b3d58fbabb9c070b8fe85d3a9fd1a0b">   95</a></span><span class="preprocessor">#define JLT35002A_V2                0 </span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="version_8h.html#a96ba962ec9cc9bc87b692482f95a7a50">   96</a></span><span class="preprocessor">#define JLT4303A                    1 </span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="version_8h.html#ae1c00a6a6083fea8c4fecfe3a6d0e0ef">   97</a></span><span class="preprocessor">#define TL040WVS03                  2 </span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="version_8h.html#a0fd30ead7240f3c30ea275ec06ace4e0">   98</a></span><span class="preprocessor">#define TL021WVC02                  3 </span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="version_8h.html#aeb6fdc6666d7f0782446ec7dcc5a229d">   99</a></span><span class="preprocessor">#define JLT4305A                    4 </span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="version_8h.html#a9146a445646691a87a3811aec2f97bca">  100</a></span><span class="preprocessor">#define ATK_MD0700R                 5 </span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="version_8h.html#ada124135a868361ed0652dd384c68216">  101</a></span><span class="preprocessor">#define WKS70170                    6 </span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="version_8h.html#acdbacaeeef9e8e900d0fb7b8fd2f06be">  102</a></span><span class="preprocessor">#define RS_7_V1_3                   7 </span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span><span class="comment">/* 如使用本示例未包含的屏幕模组型号, 用户可自行添加, 但需要编写对应的 LCD 驱动并添加至工程 */</span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span><span class="comment">/* 以下宏名均为 TP_ + 具体芯片型号, 其取值为枚举值无实际意义 */</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="version_8h.html#a6ed1fba3dd1133c3398360dfe8c4eb4e">  106</a></span><span class="preprocessor">#define TP_GT911                   0 </span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="version_8h.html#a97764b95e361f1f3286c9fcea79177d3">  107</a></span><span class="preprocessor">#define TP_FT6336                  1 </span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="version_8h.html#a25811f192df04e5738f24d1eb513ce63">  108</a></span><span class="preprocessor">#define TP_CST826                  2 </span></div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="version_8h.html#ae5fc10bd085c75d36da3cfda5c479d35">  109</a></span><span class="preprocessor">#define TP_FT5206                  3 </span></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="version_8h.html#a0d8b96a0894c1a1177a5302aa016dc90">  110</a></span><span class="preprocessor">#define TP_CST328                  4 </span></div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="version_8h.html#a8809069bd37a98d90f772e3a488d343f">  111</a></span><span class="preprocessor">#define TP_TANGO_C32               5 </span></div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="version_8h.html#ab6c09fcedcd1cb6348898139593dc6e3">  112</a></span><span class="preprocessor">#define TP_ILI2117A                6 </span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span><span class="comment">/* 如使用本示例未包含的 TP 型号, 用户可自行添加, 但需要编写对应的 TP 驱动并添加至工程 */</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span> </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span><span class="comment">/* 使用说明 : 在用户选定的下拉目标下(高亮提示), 根据对应注释说明选择 屏幕模组型号</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span><span class="comment"> * 若选择的屏幕模组为本例程已适配的型号, 分辨率规格 和 TP 型号会自动适配(用户无感)</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span><span class="comment"> * 否则, 若用户选择屏幕模组不在本例程适配型号列表内, 需要在后续条件宏中自行添加 分辨率规格 / TP 型号</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span><span class="comment"> */</span></div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span><span class="comment">/*******************************************************************************************************************************************</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span><span class="comment"> * RGB565 __TARGET__</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span><span class="comment"> *******************************************************************************************************************************************/</span></div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span><span class="preprocessor">#if         (__TARGET_CONST__ == 0)</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="version_8h.html#aab966fa72b8229d92ed1726c3e62504d">  125</a></span><span class="preprocessor">    #define LCD_TYPE            JLT4305A</span></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 1)</span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span><span class="preprocessor">    #define LCD_TYPE            JLT4305A</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span> </div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 2)</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span><span class="preprocessor">    #define LCD_TYPE            JLT4303A</span></div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 3)</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span><span class="preprocessor">    #define LCD_TYPE            TL040WVS03</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span> </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 4)</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span><span class="preprocessor">    #define LCD_TYPE            JLT4305A</span></div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 5)</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span><span class="preprocessor">    #define LCD_TYPE            WKS70170</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span><span class="comment">/*******************************************************************************************************************************************</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span><span class="comment"> * ARGB888 __TARGET__</span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span><span class="comment"> *******************************************************************************************************************************************/</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 6)</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span><span class="preprocessor">    #define LCD_TYPE            JLT4305A</span></div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 7)</span></div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span><span class="preprocessor">    #define LCD_TYPE            JLT4305A</span></div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span> </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 8)</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span><span class="preprocessor">    #define LCD_TYPE            JLT4303A</span></div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span> </div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 9)</span></div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span><span class="preprocessor">    #define LCD_TYPE            TL040WVS03</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span> </div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 10)</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span><span class="preprocessor">    #define LCD_TYPE            JLT4305A</span></div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 11)</span></div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span><span class="preprocessor">    #define LCD_TYPE            WKS70170</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span> </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 0xFF)</span></div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span><span class="preprocessor">    #define LCD_TYPE            JLT4303A</span></div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span> </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span><span class="preprocessor">    #error &quot;Please define the __TARGET_CONST__ &quot;</span></div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span> </div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span><span class="comment">/* 屏幕模组型号相对应的 分辨率规格 与 TP 型号</span></div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span><span class="comment"> * 如用户自行添加了新的屏幕模组型号, 需要在此处新增对应的 分辨率规格 与 TP 型号</span></div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span><span class="comment"> * 若未添加新型号, 对本示例已适配的屏幕模组型号会自动绑定 分辨率规格 与 TP 型号.</span></div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span><span class="comment"> */</span></div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span><span class="preprocessor">#if (LCD_TYPE == JLT35002A_V2)</span></div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>    <span class="comment">/* JLT35002A_V2 屏内 COG 驱动芯片支持横竖屏转换, 本示例已做支持, 在此处对调分辨率即可(eg : 320 * 480) */</span></div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="version_8h.html#a23a8c652045ed1831883b0c6785bea16">  188</a></span><span class="preprocessor">    #define LCD_HDOT        (480) </span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="version_8h.html#a13286deaebfd1c39a4e3638e8718c274">  189</a></span><span class="preprocessor">    #define LCD_VDOT        (320)</span></div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="version_8h.html#a99f59ed4888c3ea4d31568ab2448c1cb">  190</a></span><span class="preprocessor">    #define TP_TYPE         TP_GT911</span></div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span>    </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span><span class="preprocessor">#elif (LCD_TYPE == JLT4303A)</span></div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span><span class="preprocessor">    #define LCD_HDOT        (480)</span></div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span><span class="preprocessor">    #define LCD_VDOT        (272)</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span><span class="preprocessor">    #define TP_TYPE         TP_GT911</span></div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span>    </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span><span class="preprocessor">#elif (LCD_TYPE == TL040WVS03 || LCD_TYPE == TL021WVC02)</span></div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span><span class="preprocessor">    #define LCD_HDOT        (480)</span></div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span><span class="preprocessor">    #define LCD_VDOT        (480)</span></div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span><span class="preprocessor">    #define TP_TYPE         ( (LCD_TYPE == TL040WVS03) ? TP_FT6336 : TP_CST826 )</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>    </div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span><span class="preprocessor">#elif (LCD_TYPE == JLT4305A || LCD_TYPE == ATK_MD0700R)</span></div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span><span class="preprocessor">    #define LCD_HDOT        (800)</span></div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span><span class="preprocessor">    #define LCD_VDOT        (480)</span></div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span><span class="preprocessor">    #define TP_TYPE         ( (LCD_TYPE == JLT4305A) ? TP_GT911 : TP_FT5206 )</span></div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span>    </div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span><span class="preprocessor">#elif (LCD_TYPE == WKS70170 || LCD_TYPE == RS_7_V1_3)</span></div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span><span class="preprocessor">    #define LCD_HDOT        (1024)</span></div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span><span class="preprocessor">    #define LCD_VDOT        (600)</span></div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span><span class="preprocessor">    #define TP_TYPE         ( (LCD_TYPE == RS_7_V1_3) ? TP_GT911 : TP_FT5206 )</span></div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span>    </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span><span class="preprocessor">    #error &quot;Please define the LCD_TYPE : you custom&quot;</span></div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span> </div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span><span class="preprocessor">#ifndef TP_TYPE</span></div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span><span class="preprocessor">    #error &quot;Please define the TP_TYPE&quot;</span></div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span> </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span><span class="preprocessor">#ifndef LCD_TYPE</span></div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span><span class="preprocessor">    #error &quot;Please define the LCD_TYPE&quot;</span></div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span> </div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span><span class="preprocessor">#ifndef LCD_HDOT</span></div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span><span class="preprocessor">    #error &quot;Please define the LCD HDOT&quot;</span></div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno">  226</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span> </div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span><span class="preprocessor">#ifndef LCD_VDOT</span></div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span><span class="preprocessor">    #error &quot;Please define the LCD VDOT&quot;</span></div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span> </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span><span class="comment">/*******************************************************************************************************************************************</span></div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span><span class="comment"> * Public Define Constant</span></div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno">  234</span><span class="comment"> *******************************************************************************************************************************************/</span></div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"><a class="line" href="version_8h.html#a6f030304d43aceb040f1d221c2f493ed">  235</a></span><span class="preprocessor">#define LCD_RGB565              (2) </span></div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"><a class="line" href="version_8h.html#a4c487b7a3a9748eb2372aa8ca15f0612">  236</a></span><span class="preprocessor">#define LCD_ARGB888             (4) </span></div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span><span class="preprocessor">#if         (0 &lt;= __TARGET_CONST__ &amp;&amp; __TARGET_CONST__ &lt; 6)</span></div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"><a class="line" href="version_8h.html#ae3f7a8bd03ba0b575f7ece837aab91aa">  246</a></span><span class="preprocessor">    #define LCD_FMT                 LCD_RGB565</span></div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno">  247</span><span class="preprocessor">#elif       (6 &lt;= __TARGET_CONST__ &amp;&amp; __TARGET_CONST__ &lt; 12)</span></div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span><span class="preprocessor">    #define LCD_FMT                 LCD_ARGB888</span></div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span><span class="preprocessor">#elif       (__TARGET_CONST__ == 0xFF)</span></div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span><span class="preprocessor">    #define LCD_FMT                 LCD_RGB565 </span><span class="comment">/* 仅为了绕过编译错误所需, 无实际作用 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span><span class="preprocessor">    #error &quot;Please define the LCD_FMT : LCD_RGBxxx&quot;</span></div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span> </div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span><span class="comment">/* 48/64 脚无法配置成 ARGB888, 引脚不足. */</span></div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno">  256</span><span class="preprocessor">#if (LCD_FMT == LCD_ARGB888 &amp;&amp; SWM34S_LCM_PCBV &lt; SWM34SVE_PIN100_A001)</span></div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno">  257</span><span class="preprocessor">    #error &quot;The Target cannot select this option, No more Pins(IO)!&quot;</span></div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno">  258</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno">  259</span> </div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"><a class="line" href="version_8h.html#a61ee366ad7f1810ca59328d106730182">  260</a></span><span class="preprocessor">#define SIZE_32MB               (0x02000000)</span></div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"><a class="line" href="version_8h.html#aa6e8a628ab05c56309d88444c8a36048">  261</a></span><span class="preprocessor">#define SIZE_16MB               (0x01000000)</span></div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"><a class="line" href="version_8h.html#abb155706eaa5151d739aaeab515464c6">  262</a></span><span class="preprocessor">#define SIZE_8MB                (0x00800000)</span></div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"><a class="line" href="version_8h.html#ae88b7422dc6627f348b3e67a1849b27a">  263</a></span><span class="preprocessor">#define SIZE_2MB                (0x00200000)</span></div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span> </div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span><span class="preprocessor">#if (SWM34S_LCM_PCBV == SWM34SCE_PIN48_A2)</span></div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"><a class="line" href="version_8h.html#a52545d915cb8a3be458871130e58997a">  267</a></span><span class="preprocessor">    #define SDRAMM_SIZE             SIZE_2MB </span></div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span><span class="preprocessor">    #if (LCD_HDOT &gt; 480 &amp;&amp; LCD_VDOT &gt;= 480)</span></div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>        <span class="comment">/* 48 脚不建议驱动屏幕分辨率超过 480*480, 受限于 SDRAM 大小及管脚数量, 无法适应复杂的应用需求. */</span></div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span><span class="preprocessor">        #error &quot;The Target cannot select this option, No more SDRAMM_SIZE!&quot;</span></div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span><span class="preprocessor">    #endif</span></div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span><span class="preprocessor">    #define SDRAMM_SIZE             SIZE_8MB </span></div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span> </div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno">  276</span><span class="preprocessor">#endif </span><span class="comment">//__VERSION_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
